package com.effectiv.gooruda.domain;

import java.util.List;

import javax.validation.constraints.NotNull;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@ToString
@Document(collection="t_application")
public class Application extends PersistentObject{
	
		
	@NotNull
	@Getter @Setter
	private String name;
	
	@Getter @Setter
	private String description;
	
	@Indexed(unique=true)
	@Getter @Setter
	private String publicKey;
	
	@Indexed(unique=true)
	@Getter @Setter
	private String privateKey;
	
	@NotNull
	@Getter @Setter
	private String salt;
	
	@DBRef
	@Getter @Setter
	private List<SocialProvider> socialProviders;
	
	@DBRef
	@Getter @Setter
	private Tenant tenant;
}
